﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TinkleDao
{
    public class ProfessorDao : AbstractCrudDao<professor>
    {
        public professor GetProfessorById(int id)
        {
            return Find(where => where.Id.Equals(id)).FirstOrDefault();
        }

        public professor GetProfessorByEmail(string email)
        {
            return Find(where => where.Email.Equals(email)).FirstOrDefault();
        }
    }
}
